<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style type="text/css">
        #ggk{
            width: 400px;
            height: 100px;
            position: relative;
            
        }

        #ggk .jp{
                width: 400px;
                height: 100px;
                position: absolute;
                left: 0;
                top: 0;
        }

        #ggk #canvas{
            width: 400px;
            height: 100px;
            position: absolute;
            left: 0;
            top: 0;
        }
    </style>
</head>
<body>
    <div class="ggk">
        <div class="jp">谢谢惠顾</div>
        <canvas id="canvas" width="400px" height="100px"></canvas>
    </div>

    <script type="text/javascript">
        let canvas = document.querySelector("#canvas");
        let ctx = canvas.getContext('2d');
        ctx.fillStyle = "darkgrey";
        ctx.fillRect(0, 0, 400, 100);
        ctx.fillText("刮刮卡",180, 50);
    </script>
</body>
</html>